home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Languguage OS 2
/
Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO
/
gnu
/
libg_261.zip
/
libg_261
/
libg++
/
test-install
/
bm.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1992-11-17
|
310b
|
15 lines
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
extern int f();
int main()
{
// We (mis-)use errno supposedly to check that we got a good errno.h
// and libc. I don't quite buy it, but what the hell ... --Per
errno = f();
fprintf(stderr, "Return-code: %d (should be 1)\n", errno);
exit(0);
}